package com.fqgj.sentry.controller.rm.request;

import com.fqgj.sentry.common.exception.BizException;
import com.fqgj.sentry.common.exception.enums.ErrorCodeEnums;
import com.fqgj.sentry.common.request.ParamsObject;

/**
 * Created by ykpbean kangping.ying@yuntu-inc.com
 *
 * @description
 * @create 2017-10-16 下午8:17
 */


public class QueryComboRequest extends ParamsObject {
    /**
     * 事件id
     */
    private Long eventId;

    /**
     * 执行者版本类型
     */
    private String executorType;

    @Override
    public void validate() {
        if (eventId == null) {
            throw new BizException(ErrorCodeEnums.param_valid_error);
        }
    }

    public Long getEventId() {
        return eventId;
    }

    public String getExecutorType() {
        return executorType;
    }

    public QueryComboRequest setExecutorType(String executorType) {
        this.executorType = executorType;
        return this;
    }

    public QueryComboRequest setEventId(Long eventId) {
        this.eventId = eventId;
        return this;
    }


}
